<template>
	<view class="page" :style="{'min-height':h+'px','padding-top':(mt)+'px'}">
		<c-nav-bar1 :title="titles"></c-nav-bar1>
		<view class="bg"></view>
		<view class="content" v-if="list">
			<view class="head" :style="{'padding-bottom':(list.orderStatus=='1'?90:60)+'rpx'}">
				<text class="status disabled" v-if="list.orderStatus=='5'">已退款</text>
				<text class="status s2" v-if="list.orderStatus=='-2'">待支付</text>
				<text class="status s3" v-if="list.orderStatus=='1'">待入住</text>
				<text class="status s3" v-if="list.orderStatus=='-1'">待确定</text>
				<text class="status s3" v-if="list.orderStatus=='2'||list.orderStatus=='3'">已使用</text>
				<text class="status disabled" v-if="list.orderStatus=='4'">已取消</text>
				<text style="margin-top: 16rpx; font-size: 26rpx; font-weight: Regular;">￥</text>
				<text style="font-weight: Semibold;">{{list.realityPay}}</text>
			</view>
			<view class="hand-title" v-if="list.orderStatus=='1'">
				如需提前入住/延迟退房，请联系酒店协商<br>
				如有需要，请至线下进行开发票
			</view>
			<view class="hand-title" v-else>
				<block v-if="djsTime">
					<uCountDown text="剩余支付时间：" color="#ffffff" :fontSize="24" @finish="finish" :djsTime="djsTime" />
				</block>
				<block v-else>如需提前入住/延迟退房，请联系酒店协商</block>
			</view>
			<view class="ticketInfo">
				<view class="ticketInfo-hander">
					<view class="image">
						<image :src="list.cover" mode="aspectFill"></image>
					</view>
					<view class="" style="width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between;">
						<view class="name" style="display: flex; justify-content: space-between;"
							@click="cardBtn(list)">
							<view class="">
								{{list.homestayName}}
							</view>
							<view class="" style="display: flex;align-items: center;;">
								<!--<text style="color: #01B9F9; font-size: 26rpx ; font-weight: 500;"></text> -->
								<u-icon name="arrow-right" color="#808080" size="26rpx"></u-icon>
							</view>
						</view>
						<view class="date">
							<text>{{list.areaDetail}}</text>
						</view>
					</view>
				</view>

				<view class="ticketInfo-demo">
					<u-row>
						<u-col span="6" @click="navigation(list)">
							<view class="demo-layout bg-purple-light">
								<image style="width: 30rpx; height: 30rpx;"
									src="https://i.ringzle.com/file/20240418/1390c653b3354d539d80b24917cd4922.png"
									mode=""></image>
								<text
									style="margin-left: 16rpx;font-weight:Regular ; color: #333333; font-size: 26rpx;">地图导航</text>
							</view>
						</u-col>
						<u-col span="6">
							<view class="demo-layout bg-purple" @click="phone">
								<image style="width: 30rpx; height: 30rpx;"
									src="https://i.ringzle.com/file/20240418/265e54382c1b45bd81e764521a174aea.png"
									mode=""></image>
								<text
									style="margin-left: 16rpx; font-weight:Regular ; color: #333333; font-size: 26rpx;">联系商家</text>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>

			<view class="ticketInfo">

				<view class="two-center-two">

					<view class="df-one">
						<u-row customStyle="margin-bottom: 10px">
							<u-col span="4.3">
								<view class="demo-layout bg-purple"> {{arriveTime}}月{{arriveTimes}}日({{departWeek}})
								</view>
							</u-col>
							<u-col span="0.4">
								<view class="demo-layout bg-purple-dark" style="color: #777777;">
									-
								</view>
							</u-col>
							<u-col span="4.3">
								<view class="demo-layout bg-purple-dark"> {{leaveTime}}月{{leaveTimes}}日({{departWeeks}})
								</view>
							</u-col>
							<u-col span="2.5">
								<view class="demo-layout " style="margin-left: 20rpx;">
									{{num}}晚·{{checkInRooms}}间
								</view>
							</u-col>
						</u-row>
					</view>


					<view class="df-two">
						<u-row customStyle="margin-bottom: 10px">
							<u-col span="4">
								<view class="demo-layout bg-purple">{{checkInTimeStart}} <text>后入住</text> </view>
							</u-col>
							<u-col span="4">
								<view class="demo-layout bg-purple-dark">{{checkOutTime}}<text>前离店</text> </view>
							</u-col>
							<u-col span="4">
								<view class="demo-layout "></view>
							</u-col>
						</u-row>
					</view>



				</view>

				<view class="prices-content">
					<view class="txt1">
						{{list.houseBaseName}}
					</view>
					<view class="txt2" style="display: flex;" v-for="item,index in bedData" key="index">
						{{item.num}}张{{item.size}}{{item.category}}
					</view>
					<view class="txt2">
						{{list.breakfastType==0?'无早':'含早'}}
					</view>
				</view>

			</view>
			<!-- 订单信息 -->
			<view class="orderInfo">
				<view class="tit">订单信息</view>

				<u-cell :border="false">
					<text slot="icon" class="txt">入住人</text>
					>
					<text slot="title" class="val">{{list.guestNameCopy}}</text>
				</u-cell>
				<u-cell :border="false">
					<text slot="icon" class="txt">手机号码</text>
					>
					<text slot="title" class="val">{{list.guestPhoneCopy}}</text>
				</u-cell>
				<u-cell :border="false">
					<text slot="icon" class="txt">订单编号</text>
					>
					<text slot="title" class="val">{{list.orderCode}}</text>
					<text slot="right-icon" class="icon"
						style="border: 1rpx solid #007A69; border-radius: 50rpx; box-sizing: border-box; color: #007A69;padding: 2rpx 10rpx; font-size: 22rpx; font-weight: Regular;"
						@tap="copyOrderNo(list)">复制</text>
				</u-cell>
				<u-cell :border="false">
					<text slot="icon" class="txt">下单时间</text>
					>
					<text slot="title" class="val">{{list.orderTime}}</text>
				</u-cell>
				<u-cell :border="false">
					<text slot="icon" class="txt">备注</text>
					>
					<text slot="title" class="val">{{list.remarks==null?'':list.remarks}}</text>
				</u-cell>
			</view>

			<!-- 	<view class="bottom-list">
				<view class="image">
					<image src="https://i.ringzle.com/file/20240219/b4a02d605876430ba0d4af56fd6ed351.png" mode="">
					</image>
				</view>
				<view class="text">
					对此订单有疑问
				</view>
			</view> -->


		</view>
		<view class="btns">
			<template v-if="list.orderStatus==1">
				<view class="" @click="GoRefund(list)">
					取消订单
				</view>
				<view class="" @click="applyAfterSales(list)"
					style="color:#fff ; border-color: #007A69; background-color: #007A69;">
					再来一单
				</view>

				<!-- 		<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69;"
					@click="deleteOrder(list)">
					开发票
				</view> -->
			</template>
			<template v-if="list.orderStatus==-1">
				<view class="" @click="GoRefund(list)">
					取消订单
				</view>
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69;"
					@click="applyAfterSales(list)">
					再来一单
				</view>
			</template>
			<template v-if="list.orderStatus==-2">

				<view class="" @click="toStatus0">
					取消订单
				</view>
				<view class="" @click="pay" style="color:#fff ; border-color: #007A69; background-color: #007A69;">
					立即支付
				</view>
			</template>
			<template v-if="list.orderStatus==2||list.orderStatus==3">
				<view class="" @click="deleteOrder(list)">
					删除订单
				</view>
				<view @click.stop="toEvaluate(list)" v-if="list.isComment==1"
					style="color:#fff ; border-color: #007A69; background-color: #007A69;">
					评价
				</view>
				<view style="color:#fff ; border-color: #007A69; background-color: #007A69;"
					:style="list.isComment==0?'width: 686rpx':''" @click="applyAfterSales(list)">
					再来一单
				</view>
			</template>

			<template v-if="list.orderStatus==5||list.orderStatus==4">
				<view class="" @click="deleteOrder(list)">
					删除订单
				</view>
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69; width: 686rpx;"
					@click="applyAfterSales(list)">
					再来一单
				</view>
			</template>
		</view>
		<u-toast ref="uToast"></u-toast>

		<!-- 取消弹框 -->
		<u-modal :show="showAgree" :title="title" :content='content' showCancelButton="true" confirmText='确定'
			confirmColor='#007A69' @confirm="confirm" @cancel='cancel'></u-modal>

		<u-popup :show="confrimShow" @close="confrimShow=false">
			<view class="details">
				<view class="title">
					<text>申请退票</text>
					<image src="@/static/index/steamerTicket/icon_close.png" @tap="confrimShow=false"></image>
				</view>
				<view class="c_alert">
					<view v-if="list.deductType==1">
						<!-- 2024-04-15 18:00:00点前免费取消。逾期将扣除全额房费。 -->
						{{list.cancelDay}} {{list.cancelTime}}点前免费取消。若未入住将收取您首晚房费。
					</view>
					<view v-if="list.deductType==2">
						{{list.cancelDay}} {{list.cancelTime}}点前免费取消。若未入住将收取您全额房费。
					</view>
					<view v-if="list.deductType==3">
						{{list.cancelDay}} {{list.cancelTime}}点前免费取消。若未入住将收取您房费的{{list.deductRatio}}%。
					</view>
				</view>
				<view class="c_money">
					<text>退款金额</text>
					<text>￥{{list.refundAmount}}</text>
				</view>
				<view class="c_memo">退款预计1-7个工作日原路退回，请耐心等待</view>
				<view class="c_btns">
					<view @tap="confrimShow=false">我再想想</view>
					<view @tap="confirmApply">确定申请</view>
				</view>
			</view>
		</u-popup>

		<!-- 删除弹框 -->
		<u-modal :show="showdelete" :title="title" :content='contented' showCancelButton="true" confirmText='确定'
			confirmColor='#007A69' @confirm="confirmed" @cancel='cancel'></u-modal>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				titles: '订单详情',
				h: uni.getSystemInfoSync().windowHeight,
				mt: uni.getSystemInfoSync().statusBarHeight + 44,
				value: 1,
				status: 1,
				id: '',
				list: '',
				bedData: [],
				id: '',
				arriveTime: '',
				arriveTimes: '',
				leaveTime: '',
				leaveTimes: '',
				count: '',
				orderId: '',
				price: '',
				form: {
					initiator: 2,
					orderCode: '',
					status: ''
				},
				num: 0,
				title: '温馨提示',
				content: '您确定要取消吗？确定取消将不可撤回，再来一单可能因为没有房间，影响后续行程！',
				showAgree: false,
				checkInTimeStart: '',
				checkOutTime: '',
				FormData: {
					arriveDate: "", //	到达时间(yyyy-MM-dd)
					leaveDate: "", //离开时间(yyyy-MM-dd)
					limit: 10, //每页显示记录数
					page: 1, //当前页码
					name: "",
					islandId: '', //岛屿id
					priceSort: '', //价格排序: 1有高高低, 0由低到高
					featureLabels: '', //	特色服务(逗号分割):字典FeatureLabels
					category: '', //	酒店类别(逗号分割): 字典HotelCategory
				},
				departWeek: '',
				departWeeks: '',
				weeks: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
				checkInRooms: 0,
				confrimShow: false,
				djsTime: 0,
				showdelete: false,
				orderType: null,
				delId: null,
				contented: '您确定要删除吗？确定删除将不可撤回！',
			}
		},
		onLoad(option) {
			this.id = option.orderId
			this.getList()

		},
		methods: {
			copyOrderNo(item) {
				let that = this;
				// #ifdef H5
				this.$copyText(item.orderCode).then(res => {
					this.$showToast('复制成功');
				})
				// #endif
				// #ifdef MP-WEIXIN
				uni.setClipboardData({
					data: item.orderCode,
					success(res) {
						that.$showToast('复制成功');
					},
					fail(err) {
						that.$showToast('复制失败');
					}
				})
				// #endif
			},
			toEvaluate(item) {
				uni.navigateTo({
					url: '/pagesMy/appraise/appraise3?obj=' + JSON.stringify(item),
				});

			},
			// 导航
			navigation(item) {
				// let lat = item.lat
				// let lon = item.lon
				uni.openLocation({
					latitude: Number(item.lat),
					longitude: Number(item.lon),
					name: item.homestayName,
				});
			},
			// 去酒店详情
			cardBtn(item) {
				// 初始化
				let arriveDate = new Date().Format('yyyy-MM-dd')
				let mt = new Date().setDate(new Date().getDate() + 1);
				let leaveDate = new Date(mt).Format('yyyy-MM-dd')


				uni.navigateTo({
					url: "/pagesTrip/hotel/details/index?list=" +
						JSON.stringify([{
							homestayId: item.homestayId,
							name: '',
							arriveDate: arriveDate, //	到达时间(yyyy-MM-dd)
							leaveDate: leaveDate, //离开时间(yyyy-MM-dd)
						}, ]),
				});
			},
			// 立即支付	

			pay() {

				var list = JSON.stringify({
					price: this.list.orderAmount,
					orderId: this.orderId
				})
				this.$api.post('/order/icbc/createOrder', {
					orderCode: this.orderCode,
					tradeType: 'JSAPI',
					openId: JSON.parse(uni.getStorageSync('userInfo')).openId
				}, false).then(res => {

					// uni.navigateTo({
					// 	url: '/pagesTrip/hotel/paymentSuccess/index?list=' + list
					// })

					if (res.statusCode == 200 && res.data != null) {
						this.payShow = false;
						// var obj = { name: 'John', age: 25 };
						// wx.setStorageSync('wxPay', res.data);

						this.$wxPay(res.data).then(result => {
							uni.redirectTo({
								url: '/pagesTrip/hotel/paymentSuccess/index?list=' + list
							})
						})
					} else {
						this.$showModal(res.data.msg);
					}

				})
			},
			// 拨打电话。
			phone() {
				uni.makePhoneCall({
					phoneNumber: this.landlinePhone //仅为示例
				});
			},
			// 取消订单
			toStatus0() {
				this.showAgree = true
			},
			//确定取消
			confirm() {
				this.agree = true
				this.showAgree = false
				this.$api.post('/api/hotel/cancelOrder', this.form).then(res => {
					// uni.navigateBack(1)

					uni.navigateTo({
						url: '/pagesMy/order/index?name=酒店民宿&type=0&typeIndex=1'
					})

					this.getList()
				})
			},
			// 取消
			cancel() {
				this.showAgree = false
			},
			// 删除订单
			deleteOrder(item) {


				this.showdelete = true
				this.delId = item.id


			},
			// 确定删除
			confirmed() {
				let id = this.delId
				this.$api.get(`/api/hotel/delOrder/${id}`).then((res) => {
					if (res.data.code == 0) {
						this.showdelete = false
						setTimeout(() => {
							uni.redirectTo({
								// url: '/pagesMy/order/index',
								url: '/pagesMy/order/index?name=酒店民宿&type=0&typeIndex=1'
							})
							setTimeout(() => {
								this.$showToast('删除成功');
							}, 1000)
						}, 1000)

						this.getList();
					} else {
						this.$showModal(res.data.msg);
						this.showdelete = false
						// this.getList();
					}
				})
			},







			// 申请退款
			GoRefund(item) {
				if (item.orderStatus == -1) {
					uni.redirectTo({
						url: '/pagesTrip/hotel/refund/index?list=' + JSON.stringify([{
							...this.list
						}])
					})
				} else if (item.refundRule == 1) {
					this.$refs.uToast.show({
						type: 'error',
						title: '',
						message: "该订单不可取消",
						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/default.png'
					})
				} else if (item.refundRule == 2) {
					uni.redirectTo({
						url: '/pagesTrip/hotel/refund/index?list=' + JSON.stringify([{
							...this.list
						}])
					})
				} else if (item.refundRule == 3) {
					this.confrimShow = true
				}


			},
			// 确定申请
			confirmApply() {
				uni.redirectTo({
					url: '/pagesTrip/hotel/refund/index?list=' + JSON.stringify([{
						...this.list
					}])
				})
			},


			// 再次预定
			applyAfterSales(item) {

				// 初始化
				let arriveDate = new Date().Format('yyyy-MM-dd')
				let mt = new Date().setDate(new Date().getDate() + 1);
				let leaveDate = new Date(mt).Format('yyyy-MM-dd')


				uni.navigateTo({
					url: "/pagesTrip/hotel/details/index?list=" +
						JSON.stringify([{
							homestayId: item.homestayId,
							name: '',
							arriveDate: arriveDate, //	到达时间(yyyy-MM-dd)
							leaveDate: leaveDate, //离开时间(yyyy-MM-dd)
						}, ]),
				});



				// this.$refs.uToast.show({
				// 	type: 'success',
				// 	title: '',
				// 	message: "正在开发",
				// 	iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/default.png'
				// })
			},

			getList() {
				// /api/hotel/getHotelOrderInfo/{id}
				// /api/hotel/getHotelOrderInfo/{id}
				this.$api.get(`/api/hotel/getHotelOrderInfo/${this.id}`)
					.then(res => {
						this.list = res.data.data;
						if (this.list.orderStatus == '-2') {
							let diffMS = Date.parse(new Date()) - Date.parse(new Date(this.list.createDate));
							if (diffMS < this.$gqTime) {
								this.djsTime = this.$gqTime - diffMS - 1000; //提前一秒，便于取消刷新
							}
						}
						this.list.guestNameCopy = this.$aesTm.tuomin(this.list.guestName, 1);
						this.list.guestPhoneCopy = this.$aesTm.tuomin(this.list.guestPhone, 2);
						this.orderCode = res.data.data.orderCode
						this.num = res.data.data.num
						this.price = res.data.data.realityPay
						this.orderId = res.data.data.id
						this.checkInRooms = res.data.data.checkInRooms
						this.bedData = res.data.data.bedData

						this.arriveTime = res.data.data.arriveDate.slice(5, 7); // 截取第一个字符
						this.arriveTimes = res.data.data.arriveDate.slice(8, 10); // 截取第一个字符

						this.leaveTime = res.data.data.leaveDate.slice(5, 7); // 截取第一个字符
						this.leaveTimes = res.data.data.leaveDate.slice(8, 10); // 截取第一个字符
						this.count = Math.abs(this.leaveTimes - this.arriveTimes);

						this.checkInTimeStart = res.data.data.arriveDate.slice(11, 16)
						this.checkOutTime = res.data.data.leaveDate.slice(11, 16)

						this.landlinePhone = res.data.data.landlinePhone
						this.form.orderCode = res.data.data.orderCode
						this.form.status = res.data.data.orderStatus
						this.FormData.arriveDate = res.data.data.arriveDate.slice(0, 10)
						this.FormData.leaveDate = res.data.data.leaveDate.slice(0, 10)

						this.departWeek = this.weeks[new Date(res.data.data.arriveDate).getDay()];
						this.departWeeks = this.weeks[new Date(res.data.data.leaveDate).getDay()];
						// this.FormData.arriveDate=res.data.data.arriveDate
					})
			},
			finish() {
				this.form.refundReason = '超时未支付,自动取消!';
				this.$api.post('/api/hotel/cancelOrder', this.form).then(res => {
					if (res.data.code == 0) {
						setTimeout(() => {
							uni.reLaunch({
								url: '/pagesMy/order/index?name=酒店民宿&type=0&typeIndex=1'
							})
						}, 1000)
					}
					// setTimeout(() => {
					// 	this.djsTime = 0;
					// 	this.getList();
					// }, 500)
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.details {
		padding: 40rpx 30rpx 64rpx;

		.title {
			position: relative;
			text-align: center;

			text {
				font-size: 36rpx;
				font-family: PingFang-SC-Bold, PingFang-SC;
				font-weight: bold;
				color: #333333;
			}

			image {
				width: 36rpx;
				height: 36rpx;
				position: absolute;
				right: 10rpx;
				top: 50%;
				margin-top: -18rpx;
			}
		}

		.d_item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 44rpx;

			text {
				font-size: 32rpx;
				font-family: PingFang-SC-Bold, PingFang-SC;
				font-weight: bold;
				color: #333333;

				&.red {
					font-size: 32rpx;
					font-family: PingFang-SC-Bold, PingFang-SC;
					font-weight: bold;
					color: #FF4141;
				}
			}

			&.yjtk {
				margin-top: 94rpx;
			}
		}

		.d_item2 {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 24rpx;

			text {
				font-size: 30rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #777777;
			}
		}

		.c_alert {
			margin-top: 64rpx;
			font-size: 30rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #666666;
		}

		.c_money {
			margin-top: 40rpx;
			width: 100%;
			height: 100rpx;
			background: #F5F8FA;
			border-radius: 5rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 20rpx;
			box-sizing: border-box;

			text {
				font-size: 30rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;

				&:last-child {
					font-weight: bold;
					color: #FF4141;
				}
			}
		}

		.c_memo {
			margin-top: 24rpx;
			font-size: 24rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #999999;
		}

		.c_btns {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 144rpx;

			&>view {
				width: calc(50% - 15rpx);
				height: 88rpx;
				border-radius: 16rpx;
				border: 1rpx solid #AAAAAA;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 32rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;

				&:last-child {
					background: #007A69;
					color: #FFFFFF;
				}
			}
		}
	}

	.bottom-list {
		display: flex;
		margin: 37rpx auto;
		justify-content: center;

		.image {
			width: 36rpx;
			height: 36rpx;
			margin: 0 8rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.text {
			font-size: 26rpx;
			color: #999999;
			font-weight: Regular;
		}
	}

	.minus,
	.plus {
		display: flex;
		align-items: center;
		// width: 44rpx;
		// height: 44rpx;
		// line-height: 44rpx;
		padding: 10rpx 10rpx;
		// padding-left: 8rpx;

		border: 1px solid #999;
		border-radius: 6rpx;
		text-align: center;
	}

	.page {
		box-sizing: border-box;
		background-color: #F5F8FA;


		.content {
			position: relative;
			z-index: 3;
			padding-bottom: 160rpx;

			.hand-title {
				position: absolute;
				left: 20rpx;
				top: 100rpx;
				font-size: 24rpx;
				color: #fff;
				padding-left: 10rpx;
			}
		}

	}

	.bg {
		box-sizing: border-box;
		height: 700rpx;
		position: fixed;
		// top: 44px;
		z-index: 1;
		width: 100%;
		background-image: linear-gradient(to bottom, #007A69, #007A69, #F5F8FA);
	}

	.ticketInfo-demo {
		// border-bottom: 2rpx solid #EFEFEF;
		margin-top: 40rpx;

		.demo-layout {
			display: flex;
			align-items: center;
			text-align: center;
			margin: 0 80rpx;
		}
	}

	.two-center-two {
		box-sizing: border-box;

		.tit {
			font-size: 32rpx;
			color: #333333;
			margin: 20rpx 0;
		}

		.df-one {
			font-size: 32rpx;
			color: #333333;
			font-weight: bold;

			// .bg-purple-dark {
			// 	margin-left: 140rpx;
			// }

			// .demo-layout {
			// 	margin-left: 30rpx;
			// }
		}

		.df-two {
			// border-bottom: 2rpx solid #EFEFEF;

			.bg-purple {
				// margin-right: 100rpx;
				width: 182rpx;
				margin-left: -13rpx;
			}

			.bg-purple-dark {
				// margin-left: 50rpx;
			}

			.bg-purple,
			.bg-purple-dark {
				font-size: 26rpx;
				color: #777777;
				font-weight: Regular;
				text-align: center;

				text {
					margin: 0 8rpx;
				}
			}

			.bg-purple-light {
				font-size: 24rpx;
				color: #666666;
				border: 1rpx solid #666666;
				text-align: center;
				border-radius: 50rpx;
			}

		}
	}


	.prices-content {
		margin: 24rpx 0 0;

		.txt1 {
			font-size: 32rpx;
			color: #111111;
			font-weight: bold;
		}

		.txt2 {
			margin: 12rpx 0 0;
			font-size: 26rpx;
			color: #777777;
			font-weight: Regular;
		}

	}



	.orderInfo {
		box-sizing: border-box;
		background-color: #fff;
		border-radius: 16rpx;
		width: 93%;
		margin: 0 24rpx 20rpx;

		.tit {
			font-size: 32rpx;
			color: #333;
			padding-left: 30rpx;
			padding-top: 40rpx;
			font-weight: 600;
			margin-bottom: 20rpx;
		}

		.txt {
			font-size: 28rpx;
			color: #666;
			width: 115rpx;
		}

		.icon {
			font-size: 28rpx;
			color: #666;
		}

		.val {
			font-size: 28rpx;
			color: #333333;
			margin: 0 20rpx 0 30rpx;
		}

		.nums {
			display: flex;
			justify-content: space-between;
			border-bottom: 1rpx solid #f0f2f5;
			padding: 0 24rpx;

			.input {
				margin: 0 30rpx;
				font-size: 28rpx;
			}

			text {
				margin: 20rpx 0;

				&:nth-child(1) {
					font-size: 28rpx;
					color: #333;
					font-weight: 400;
				}

				&:nth-child(3) {
					font-size: 36rpx;
					color: #FF4141;
					margin-right: 40rpx;
				}

				&.icon {
					display: inline-block;
					width: 100rpx;
					flex: 1;
					text-align: right;
					padding-top: 12rpx;
				}
			}

			// .minus,
			// .plus {
			// 	width: 44rpx;
			// 	height: 44rpx;
			// 	line-height: 44rpx;
			// 	padding: 11rpx 9rpx;
			// 	border: 1px solid #999;
			// 	border-radius: 6rpx;
			// }

			.plus {
				background-color: #0EBFFE;
				border-color: #0EBFFE;
			}

		}

	}

	.ticketInfo {
		box-sizing: border-box;
		width: 93%;
		margin: 0 24rpx 20rpx;
		padding: 36rpx 24rpx 36rpx;
		border-radius: 20rpx;
		position: relative;
		background-color: #fff;
		z-index: 2;

		.ticketInfo-hander {
			display: flex;

			.image {
				width: 130rpx;
				height: 136rpx;
				border-radius: 12rpx;
				margin-right: 20rpx;

				image {
					border-radius: 12rpx;
					width: 100%;
					height: 100%;
				}
			}

		}

		.name {
			font-size: 32rpx;
			color: #333;
			font-weight: bold;
			width: 100%;
		}

		.date {
			// padding: 20rpx 0 32rpx;
			padding-top: 30rpx;

			text {
				font-size: 26rpx;

				&:nth-child(1) {
					color: #808080;
				}

				&:nth-child(2) {
					color: #FF7D01;
					margin-left: 30rpx;
				}
			}
		}



		.topHead {
			width: 93%;
			margin: 0 24rpx;
			background-color: #F5F8FA;
			padding: 28rpx 0 28rpx 84rpx;
			border-radius: 16rpx;
			position: relative;

			text {
				position: absolute;
				left: 0;
				top: 0;
				z-index: 1;
				border-radius: 16rpx 0 0 16rpx;
				width: 48rpx;
				color: #fff;
				font-size: 20rpx;
				background-color: #484F61;
				text-align: center;
				height: 100%;
				padding: 15rpx 10rpx 0;

			}

			.p {
				font-size: 28rpx;
				color: #333;

				&:nth-of-type(1) {
					font-weight: 600;
					margin-bottom: 16rpx;
				}
			}


		}

		.code {
			margin-top: 40rpx;
			text-align: center;
			position: relative;

			.cover,
			.sx {
				position: absolute;
				background-color: rgba(255, 255, 255, 0.5);
				width: 340rpx;
				height: 340rpx;
				top: 66rpx;
				left: 50%;
				transform: translate(-50%, 0);
			}

			.sx {
				width: 120rpx;
				height: 120rpx;
				top: 150rpx;
				background: transparent;
			}

			.txt {
				font-size: 28rpx;
			}

			image {
				width: 340rpx;
				height: 340rpx;
				margin: 30rpx 0;
			}
		}
	}

	.head {
		box-sizing: border-box;
		padding: 34rpx 24rpx 60rpx;
		display: flex;
		position: relative;
		z-index: 2;

		text {
			color: #fff;

			&:nth-child(1),
			&:nth-child(3) {
				font-size: 44rpx;
				font-weight: bold;
			}

			&:nth-child(2) {
				flex: 1;
				text-align: right;
				width: 100px;
				font-size: 36rpx;
			}
		}
	}


	.btns {
		box-sizing: border-box;
		width: 100%;
		position: fixed;
		bottom: 0;
		z-index: 4;
		left: 0;
		display: flex;
		padding: 32rpx 32rpx 50rpx;
		background-color: #fff;
		gap: 0 20rpx;
		box-shadow: 0 -8rpx 16rpx rgba(0, 0, 0, 0.06);


		&>view {
			width: calc(50% - 15rpx);
			height: 80rpx;
			border-radius: 46rpx;
			// border: 1rpx solid #999999;
			line-height: 80rpx;
			text-align: center;
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: Bold;
			color: #111111;
			background-color: #F6F6F6;
		}
	}
</style>